// mock请求示例 用时先放开mainjs里面的mockFn()
// async function mockExample() {
//   let res = await hfoRequest.get({ url: "/bigscreen/countUserNum" });
//   console.log(res);
// }
// mockExample();
import Mock from "mockjs";
import mockList from "./mocks";

Mock.setup({
  timeout: "300"
});
export function mockFn() {
  let i: IMockOMockList;
  for (i of mockList) {
    Mock.mock(new RegExp(i.url), i.type || "get", i.response);
  }
}
